package com.wyg.learn.impl;

import com.wyg.learn.service.HelloService;

/**
 * @description:
 * @author: WYG
 * @time: 2020/10/9 21:03
 */

public class HelloServiceImpl implements HelloService {

    @Override
    public String sayHello(String msg) {
        System.out.println("收到客户端的消息" + msg);
        if (msg != null) {
            return "客户端你好，我已收到你的消息:" + msg;
        } else {
            return "客户端你好，你发送的消息为空";
        }
    }
}
